<div class="search-box">
	<form class="search_form layui-form" lay-filter="audit_search_form">
		<div class="layui-inline">
			<label class="layui-form-label">分站</label>
			<div class="layui-input-inline">
				<select name="site_id" lay-filter="site_id" lay-search>
					<option value="">全部</option>
					{volist name="site_list" id="list"}
					<option value="{$list.site_id}" {if condition="$list.site_id EQ SITE_ID"}selected{/if}>{$list.site_name}</option>
					{/volist}
				</select>
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">对象</label>
			<div class="layui-input-inline">
				<select name="audit_method" lay-filter="audit_method">
					<option value="">全部</option>
					<option value="1">分类</option>
					<option value="2">品牌</option>
					<option value="3">商品</option>
				</select>
			</div>
		</div>
		
		<div class="layui-inline search-radio-box">
			<div class="layui-input-inline">
				<input type="radio" name="audit_state" value="1" checked title="等待">
				<input type="radio" name="audit_state" value="2" title="通过">
				<input type="radio" name="audit_state" value="3" title="驳回">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">唯一标识</label>
			<div class="layui-input-inline">
				<input type="text" name="audit_sign" autocomplete="off" class="layui-input">
			</div>
		</div>
		<div class="pack-up"></div>
	</form>
</div>
<table class="layui-hide" id="audit_list" lay-filter="audit_list"></table>
<script>
	var audit_list_url = "{:url('audit/ajaxList')}";
	var audit_delete_url = "{:url('audit/ajaxDelete')}";
	var audit_pass_url = "{:url('audit/ajaxPass')}";
	var audit_refuse_url = "{:url('audit/ajaxRefuse')}";
	var audit_view_url = "{:url('audit/goodsInfo')}";
	var audit_cols = {$cols};
</script>
<script src="/static/js/audit/audit.js" type="text/javascript" charset="utf-8"></script>
<script type="text/html" id="audit_audit_stateTpl">
	{{# if(d.audit_state == 2){ }}
		<div class="layui-anim circle layui-bg-blue" data-title="通过">
			<i class="layui-icon layui-icon-radio"></i>
		</div>
	{{# } else if(d.audit_state == 1){ }}
		<div class="layui-anim circle layui-bg-orange" data-title="等待">
			<i class="layui-icon layui-icon-radio"></i>
		</div>
	{{# } else { }}
		<div class="layui-anim circle layui-bg-red" data-title="驳回：{{d.remark}}">
			<i class="layui-icon layui-icon-radio"></i>
		</div>
	{{# }}}
</script>
<script type="text/html" id="audit_tool">
	<div class="layui-btn-group">
		{{# if(d.audit_state == 1){}}
		<a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="pass" data-id="{{ d.audit_id}}" data-title="通过"><i class="layui-icon layui-icon-ok"></i></a>
		<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="refuse" data-id="{{ d.audit_id}}" data-title="拒绝"><i class="layui-icon layui-icon-close"></i></a>
		{{#}}}
		{{# if(d.audit_method == '产品'){}}
		<a class="layui-btn layui-btn-xs" lay-event="view" data-id="{{ d.audit_id}}" data-title="查看"><i class="layui-icon layui-icon-file"></i></a>
		{{#}}}
	</div>
</script>